// IE <= 7 is deprecated

// format() method implementation
String.prototype.format = function() {
    var formatted = this;
    for (var i = 0; i < arguments.length; i++) {
        var regexp = new RegExp('\\{'+i+'\\}', 'gi');
        formatted = formatted.replace(regexp, arguments[i]);
    }
    return formatted;
};

var text = objectL10n.ie_text.format('Internet Explorer '+$.browser.version, ' <a href="', '" target="_blank">Firefox</a>, <a href="http://www.google.com/chrome/" target="_blank">Chrome</a> ', ' <a href="http://www.opera.com/browser/" target="_blank">Opera</a> ');

$(document).ready( function () {
    $("#wraper").append('<div id="ie-deprecated"><p>'+text+'</p></div>');
    $("#ie-deprecated").append('<div id="ie-deprecated-close"><a href="#">'+objectL10n.ie_close+'</a></div>');
    $("#ie-deprecated-close a").click( function () {
        $("#ie-deprecated").remove();
    });
});
